<template>
	<view class="inform">
		<u-tabs :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
		<view class="" v-if="this.current==0">
			<view class="content">
				<view class="list" @click="system">
					<view class="list1">
						<view class="image">
							<image src="../../static/img/system.png" mode=""></image>
						</view>
						<view class="text">
							系统通知
						</view>
					</view>
					<view class="img">
						<image src="../../static/right.png" mode=""></image>
					</view>
				</view>
				<view class="list" @click="punishment">
					<view class="list1">
						<view class="image">
							<image src="../../static/img/system-2.png" mode=""></image>
						</view>
						<view class="text">
							处罚公告
						</view>
					</view>
					<view class="img">
						<image src="../../static/right.png" mode=""></image>
					</view>
				</view>
			</view>
		</view>
		<view class="" v-if="this.current==1">
			<view class="no">
				<image src="../../static/img/no.png" mode=""></image>
				<view class="xiaoxi">
					暂无消息通知~
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "inform",
		data() {
			return {
				list: [{
					name: '消息'
				}, {
					name: '关于我'
				}],
				current: 0
			};
		},
		methods: {
			change(index) {
				this.current = index;
			},
			system(){
				uni.navigateTo({
					url: "/pages/index/system"
				})
			},
			punishment(){
				uni.navigateTo({
					url: "/pages/index/punishment"
				})
			},
		}
	};
</script>

<style scoped>
	.inform {
		background: rgb(238, 238, 238);
		height: 1250rpx;
	}

	.content {
		width: 100%;
		display: flex;
		flex-direction: column;
		padding-top: 20rpx;
	}

	.list {
		display: flex;
		flex-direction: row;
		background: #FFFFFF;
		padding: 12rpx;
		justify-content: space-between;
		    margin-bottom: 1px;
	}
	.list1{
		display: flex;
		flex-direction: row;
	}

	.image image {
		width: 90rpx;
		height: 90rpx;
	}

	.img {
		padding-top: 12px;
	}

	.img image {
		width: 50rpx;
		height: 50rpx;
	}

	.text {
		font-size: 30rpx;
		padding-left: 40rpx;
		padding-top: 24rpx;
	}
	.no{
		display: flex;
		flex-direction: column;
		align-content: center;
		align-items: center;
		padding-top: 50%;
	}
	.no image{
		width: 220rpx;
		height: 200rpx;
	}
	.no view{
		color: rgb(153,153,153);
		padding-top: 30rpx;
	}
</style>
